<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container"  id="content">
		 <section class="content-header">
			 <h1>
				 <i class="fa fa-file"></i>
				 <strong>计划任务管理</strong>
			 </h1>
			 <ol class="breadcrumb">
				 <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				 <li>计划任务管理</li>
				 <li class="active">计划任务管理</li>
			 </ol>
		 </section>
		 <!-- Main content -->
		 <section class="content">
			<div class="row">
				<form id="planTaskAtrrForm" class="widget-box">
				<div class="box box-info" id="exdeTbOPPlanTaskEdit">
					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">基本信息</h4>
					</div>
					<div class="box-body" >
						<div class="form-horizontal">
							<input type="hidden" name="plantaskId" id="plantaskId" th:value="${exdeTbOPPlanTask.id}"/>
							<input type="hidden" name="dCreateDate" id="dCreateDate" th:value="${#dates.format(exdeTbOPPlanTask.dCreateDate,'yyyy-MM-dd')}"/>
							<div class="form-group">
								<label class="col-sm-1">计划任务编号</label>
								<div class="col-sm-3">
								   <div class="col-md-11">
										<input class="form-control" type="text" name="cPlanNumber"
											id="cPlanNumber"
											th:value="${exdeTbOPPlanTask.cPlanNumber}" readonly="readonly"/>
									</div>
									<div class="col-md-1" >
									    <span style="color:#F00">*</span>
									</div>
								</div>
								<label class="col-sm-1">供方合同号</label>
								<div class="col-sm-3">
								     <div class="col-md-11">
										<input class="form-control" type="text" id="cContractNumber"
											name="cContractNumber" 
											th:value="${exdeTbOPPlanTask.cContractNumber}" readonly="readonly"/>
									  </div>
									  <div class="col-md-1" >
									    <span style="color:#F00">*</span>
									  </div>
								</div>
								<label class="col-sm-1">合同签订人</label>
								<div class="col-sm-3">
								   <div class="col-md-11">
									<input class="form-control" type="text" id="nContractManager" name="nContractManager" 
									   th:value="${exdeTbOPPlanTask.nContractManager}" readonly="readonly"/>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1">订货日期</label>
								<div class="col-sm-3">
								   <div class="col-md-11">
									<input class="form-control" type="date" id="dOrderDate" name="dOrderDate" 
									  th:value="${#dates.format(exdeTbOPPlanTask.dOrderDate,'yyyy-MM-dd')}" readonly="readonly"/>
									</div>
								</div>
								<label class="col-sm-1">交货日期</label>
								<div class="col-sm-3">
								   <div class="col-md-11">
									<input class="form-control" type="date" id="dDeliveryDate" name="dDeliveryDate" 
									   th:value="${#dates.format(exdeTbOPPlanTask.dDeliveryDate,'yyyy-MM-dd')}" readonly="readonly"/>
								  	</div>
								  </div>
								<label class="col-sm-1">订货单位</label>
								<div class="col-sm-3">
								   <div class="col-md-11">
									<input class="form-control" type="text" id="cUserUnit" name="cUserUnit" 
									   th:value="${exdeTbOPPlanTask.cUserUnit}" readonly="readonly"/>
								   </div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1">备注</label>
								<div class="col-sm-11">
								  <div class="col-md-11">
									<textarea class="form-control" type="text" name="cMemo"
										id="cMemo" th:text="${exdeTbOPPlanTask.cMemo}"
										rows="2" datatype="*,*1-1000"></textarea>
									</div>
								</div>

							</div>
							<div class="form-group">
								<label class="col-sm-1">降库说明</label>
								<div class="col-sm-11">
								  <div class="col-md-11">
									<textarea class="form-control" type="text" name="cLowStockMemo"
										id="cLowStockMemo" th:text="${exdeTbOPPlanTask.cLowStockMemo}"
										rows="2" datatype="*,*1-1000" nullmsg="请输入降库说明"></textarea>
									</div>
									<div class="col-md-1">
										<span style="color: #F00">*</span>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="box-header with-border">
						<i class="fa fa-th-list"></i>
						<h4 class="box-title">执行合同特殊要求说明</h4>
					</div>
					<div class="box-body">
						<div class="box-header with-border">
							<h4 class="box-title">违约责任</h4>
						</div>
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-sm-3 " style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nViolationDeliveryDate" th:checked="${exdeTbOPPlanTask.nViolationDeliveryDate}"/>
									<label class=" control-label">交货期</label>
								</div>
								<div class="col-sm-3 " style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nVPerformance" th:checked="${exdeTbOPPlanTask.nVPerformance}"/>
									<label class="control-label">技术性能</label>
								</div>
								<div class="col-sm-3 " style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nVQuality" th:checked="${exdeTbOPPlanTask.nVQuality}"/>
									<label class="control-label">产品质量</label>
								</div>
								<label class="col-sm-1 control-label">其他</label>
								<div class="col-sm-3 ">
								  <div class="col-md-11">
									<input class="form-control" type="text" id="nVOther" name="nVOther" 
									   th:value="${exdeTbOPPlanTask.nVOther}"/>
								  </div>
								</div>
							</div>
						</div>
						<div class="box-header with-border">
							<h4 class="box-title">图纸资料</h4>
						</div>
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-sm-3 " style="width: 10%;margin-left: 5%;">
									<input type="checkbox" id="nBPBase" th:checked="${exdeTbOPPlanTask.nBPBase}" />
									<label class=" control-label">基础图</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
									<input class="form-control" type="date" id="dBaseDate" name="dBaseDate" 
									   th:value="${exdeTbOPPlanTask.dBaseDate}?${#dates.format(exdeTbOPPlanTask.dBaseDate,'yyyy-MM-dd')}:''"/>
								  </div>
								</div>
								<div class="col-sm-3" style="width: 10%;margin-left: 5%;" >
									<input type="checkbox" id="nBPInterface" th:checked="${exdeTbOPPlanTask.nBPInterface}" />
									<label class="control-label">安装及接口图</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
									<input class="form-control" type="date" id="dInterfaceDate" name="dInterfaceDate" 
									  th:value="${exdeTbOPPlanTask.dInterfaceDate}?${#dates.format(exdeTbOPPlanTask.dInterfaceDate,'yyyy-MM-dd')}:''" />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-3" style="width: 10%;margin-left: 5%;">
									<input type="checkbox" id="nBPPID" th:checked="${exdeTbOPPlanTask.nBPPID}" />
									<label class=" control-label">PID或工艺流程图</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
									<input class="form-control" type="date" id="dPIDDate" name="dPIDDate" 
									   th:value="${exdeTbOPPlanTask.dPIDDate}?${#dates.format(exdeTbOPPlanTask.dPIDDate,'yyyy-MM-dd')}:''"/>
								  </div>
								</div>
								<div class="col-sm-3" style="width: 10%;margin-left: 5%;" >
									<input type="checkbox" id="nBPElectricity" th:checked="${exdeTbOPPlanTask.nBPElectricity}" />
									<label class="control-label">电气原理图</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
									<input class="form-control" type="date" id="dElectricityDate" name="dElectricityDate" 
									   th:value="${exdeTbOPPlanTask.dElectricityDate}?${#dates.format(exdeTbOPPlanTask.dElectricityDate,'yyyy-MM-dd')}:''" />
								  </div>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-3" style="width: 10%;margin-left: 5%;">
									<input type="checkbox" id="nBPWiring" th:checked="${exdeTbOPPlanTask.nBPWiring}" />
									<label class=" control-label">电气接线图</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
									<input class="form-control" type="date" id="dWiringDate" name="dWiringDate"
									   th:value="${exdeTbOPPlanTask.dWiringDate}?${#dates.format(exdeTbOPPlanTask.dWiringDate,'yyyy-MM-dd')}:''" />
								  </div>
								</div>
								<div class="col-sm-3" style="width: 10%;margin-left: 5%;" >
									<input type="checkbox" id="nBPControlCubicle" th:checked="${exdeTbOPPlanTask.nBPControlCubicle}" />
									<label class="control-label">控制柜外形图</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11" >
									<input class="form-control" type="date" id="dControlCubicleDate" name="dControlCubicleDate" 
									   th:value="${exdeTbOPPlanTask.dControlCubicleDate}?${#dates.format(exdeTbOPPlanTask.dControlCubicleDate,'yyyy-MM-dd')}:''"/>
								  </div>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-3" style="width: 10%;margin-left: 5%;">
									<input type="checkbox" id="nTestReport" th:checked="${exdeTbOPPlanTask.nTestReport}" />
									<label class=" control-label">试验报告</label>
								</div>
								<label class="col-sm-1 control-label">日期</label>
								<div class="col-sm-3">
								  <div class="col-md-11">
									<input class="form-control" type="date" id="dTestReportDate" name="dTestReportDate"
									th:value="${exdeTbOPPlanTask.dTestReportDate}?${#dates.format(exdeTbOPPlanTask.dTestReportDate,'yyyy-MM-dd')}:''" />
									    <!-- th:text="${exdeTbOPPlanTask.}?${#dates.format(exdeTbOPPlanTask.,'yyyy-MM-dd')}:''" -->
								  </div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">其它：</label>
								<div class="col-sm-11">
								  <div class="col-md-11">
									<textarea class="form-control" type="text" name="nBPOther"
										id="nBPOther" th:text="${exdeTbOPPlanTask.nBPOther}"
										></textarea>
									</div>
								</div>
							</div>
						</div>
						<div class="box-header with-border">
							<h4 class="box-title">检验、试验</h4>
						</div>
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-sm-3" style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nExJail" th:checked="${exdeTbOPPlanTask.nExJail}" />
									<label class=" control-label">监造</label>
								</div>
								<div class="col-sm-3" style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nExThirdParty" th:checked="${exdeTbOPPlanTask.nExThirdParty}" />
									<label class="control-label">第三方检验</label>
								</div>
								<div class="col-sm-3" style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nExLeav" th:checked="${exdeTbOPPlanTask.nExLeav}" />
									<label class="control-label">出厂见证试验</label>
								</div>
							</div>
						</div>
						<div class="box-header with-border">
							<h4 class="box-title">油漆</h4>
						</div>
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-sm-3" style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nPaintCompany" th:checked="${exdeTbOPPlanTask.nPaintCompany}" />
									<label class=" control-label">按公司规定</label>
								</div>
								<div class="col-sm-3" style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nPaintUser" th:checked="${exdeTbOPPlanTask.nPaintUser}" />
									<label class="control-label">按用户要求</label>
								</div>
							</div>
						</div>
						<div class="box-header with-border">
							<h4 class="box-title">包装</h4>
						</div>
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-sm-3 " style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nPackingOrdinary" th:checked="${exdeTbOPPlanTask.nPackingOrdinary}" />
									<label class=" control-label">普通包装</label>
								</div>
								<div class="col-sm-3 " style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nPackingExport" th:checked="${exdeTbOPPlanTask.nPackingExport}" />
									<label class="control-label">出口包装</label>
								</div>
								<div class="col-sm-3 " style="width: 15%;margin-left: 5%;">
									<input type="checkbox" id="nPackingUser" th:checked="${exdeTbOPPlanTask.nPackingUser}" />
									<label class="control-label">按用户要求</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label" >其它要求：</label>
								<div class="col-sm-11">
								  <div class="col-md-11">
									<textarea class="form-control" type="text" name="cOtherRequirement"
										id="cOtherRequirement" th:text="${exdeTbOPPlanTask.cOtherRequirement}"
										></textarea>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="box-header with-border">
						<h4 class="box-title">产品信息</h4>
					</div>
					<div class="box box-body" style="width:100%; overflow-x:scroll;">
						<table class="mytable dataTable table-bordered text-center table-striped table-hover"
							cellspacing="0" width="3000px" align="center" id="PlanTaskDetailTable">
							<thead>
								<tr>
									<th width="2%">序号</th>
									<th width="2.5%">产品名称</th>
									<th width="2.5%">产品类型</th>
									<th width="2.5%">产品型号</th>
									<th width="2.5%">数量</th>
									<th width="2.5%">单价(元)</th>
									<th width="2.5%">功率(kw)</th>
									<th width="2.5%">过流材质</th>
									<th width="2.5%">传输介质</th>
									<th width="2.5%">粘度(Cp)</th>
									<th width="2.5%">流量(m3/h)</th>
									<th width="2.5%">扬程(m)</th>
									<th width="2.5%">温度(℃)</th>
									<th width="2.5%">比重(kg/m3)</th>
									<th width="2.5%">入口压力(MPa)</th>
									<th width="2.5%">有效气蚀余量(N[PSHa)(m)</th>
									<th width="2.5%">必须气蚀余量(N[PSHr)(m)</th>
									<th width="2.5%">电机</th>
									<th width="2.5%">交货日期</th>
									<th width="2.5%">出口压力</th>
									<th width="2.5%">位号</th>
									<th width="2.5%">使用单位</th>
									<th width="2.5%">附加要求</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
					<div class="box-header with-border">
						<h4 class="box-title">备件信息</h4>
					</div>
					<div class="box box-body" style="width:100%; overflow-x:scroll;">
						<table id="PlanTaskDetailReplaceTable"
							class="mytable dataTable table-bordered text-center table-striped table-hover"
							cellspacing="0" width="100%" align="center">
							<thead>
								<tr>
									<th class="center" width="6%">序号</th>
									<th class="center" width="20%">配件名称</th>
									<th class="center" width="20%">规格型号</th>
									<th class="center" width="10%">材料</th>
									<th class="center" width="8%">单位</th>
									<th class="center" width="10%">数量</th>
									<th class="center" width="10%">含税单价(元)</th>
									<th class="center" width="10%">物料编码</th>
									<th class="center" width="10%">备注</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
					<div class="box-body">
                        <button class="btn btn-info pull-right saveBtn">保存</button>
                        <button class="btn btn-info pull-right " id="IssuedSchedulingBtn">下达</button>
						<a type="button" class="btn btn-default resetBtn pull-right" href="javascript:history.go(-1)">返回</a>
					</div>
				</div>
				</form>
			</div>
		</section>
	  
	  
      <script th:src="@{/scheduling/schedulingedit.js}"></script>
	  <script th:inline="javascript">
		</script>
	 </div>

	
</body>
</html>